<%@ page title="" language="C#" masterpagefile="~/RealtimeSite.master" autoeventwireup="true" inherits="oldUserManager_52, App_Web_pwjjhxl1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

  <style>
  .card [class*=card-header-]:not(.card-header-icon):not(.card-header-text):not(.card-header-image) {
    border-radius: 3px;
    margin-top: -20px;
    padding: 7px;
    padding-left: 10px;
}
.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    padding: 4px 8px !important;
    vertical-align: middle;
    border-color: #ddd;
}
.container {
    max-width: 1215px !important;
    margin-left: 142px;
    margin-top: -76px;    
}
.table>tbody>tr>th
{
    color: #fff !important;
    background: #fb3406ba !important;
    border:0px !important;
}
.panel-heading
{
    padding:6px !important;
    font-size:13px;
}
.panel
{
    background:#eee !important;
}
#MainContent_lblDepartmentName
{
    font-size:14px;
    font-weight:600;
}
#Span1
{
    font-size:14px;
    font-weight:600;
}
#Span2
{
    font-size:14px;
    font-weight:600;
}
#Span3
{
    font-size:14px;
    font-weight:600;
}
.panel-heading
{
    background:#fb3406ba !important;
}
.btn
{
    font-size:12px !important;
}
.label-message {
    background: red;
    color: #fff;
    padding: 6px;
    position: fixed;
    bottom: 0px;
    width: auto;
    padding-bottom: 0px;
    padding-top: 0px;
    right: 0;
}
.btn-success
{
    height:auto !important;
}
  
  </style>
  
                <div class="container" id="usermanger12" runat="server">   

<div class="row dash-pane2" style="margin-left:0px; margin-right:0px;">	

<div class="card">
                <div class="card-header card-header-warning" id="cardheadergreen" runat="server">
                  <h4 class="card-title"><i class="fa fa-list fa-fw"></i>  
                      <asp:Label ID="Label1" runat="server" Text="User Manager"></asp:Label></h4>
   
                </div>
                <div class="card-body">
                <!-----Hardware Setup------->
                   <div class="row" style="margin-top:-10px;">
                    <div class="col-lg-3">
                                    <asp:Label ID="Label8" runat="server" Text="Devices:"></asp:Label>
                                    <asp:DropDownList ID="Device_List" runat="server" class="form-control" OnSelectedIndexChanged="Device_List_SelectedIndexChanged">
                                    </asp:DropDownList>
                                    <%--<asp:TextBox ID="mTransIdTxt" runat="server" Visible="False" class="form-control" ></asp:TextBox>--%>
                      </div>
                      <div class="col-lg-2" style="margin-top:25px;">
                     <asp:Label ID="Label10" runat="server" Text="Serial No:  "></asp:Label>
                                    <asp:Label ID="LDev_Name" runat="server"></asp:Label>
                  </div>
                    <div class="col-lg-2" style="margin-top:25px;">
                    <asp:Label ID="Label11" runat="server" Text="Connect Status:"></asp:Label>
                                    <asp:Image ID="StatusImg" runat="server" Height="20px" ImageUrl="~/images/redon.png"
                                        Width="20px" />
                  </div>
                      <div class="col-lg-3" style="margin-top:15px;">
                              <i class="fa fa-plus;"></i>
                    <asp:Button ID="Button9" runat="server" type="button" Text="Connect " class="btn btn-success"
                        OnClick="Button1_Click1" />&nbsp;&nbsp;
                    &nbsp;&nbsp;
                    <i class="fa fa-trash-o;"></i>
                      
                      </div>

                  <div class="col-lg-2" style="position: relative; top: 43px;">
                         <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" Checked="True" 
                         oncheckedchanged="CheckBox1_CheckedChanged" Text="Select All/Deselect All" />
                  </div>
                
                </div>
                <div class="row" style="margin-left:0px; margin-right:0px; margin-top:10px;display:none">
                 <div class="panel panel-primary" style="width:100%">
                <div class="panel-heading"><asp:Label ID="lblDeviceInfo" runat="server" Text="Device Info"></asp:Label></div>
                <div class="panel-body" style="padding-bottom:10px !important;">
                 <div class="row" style="padding-top:15px;">
                <div class="col-lg-4">
                                    <asp:Label ID="Label9" runat="server" Text="ID:  "></asp:Label>
                                    <asp:Label ID="LDev_ID" runat="server"></asp:Label>
                                </div>
                                <div class="col-lg-4">
                                 
                                </div>
                      
                                <div class="col-lg-4">
                                  
                                </div>
                </div>
                </div>
                </div>
                </div>

                <!-----End Hardware Setup----->

                <div class="row"  style="height:220px; over-flow-x:hidden; overflow-y:scroll; margin-left:0px; margin-right:0px; margin-top:10px">
                <div class="table-responsive">
                <asp:GridView ID="Grid1" runat="server"  class="table table-bordered table-hover table-striped"  
          AutoGenerateColumns="False"  DataKeyNames="Id" 
          Width="100%"
          style="font-family: Verdana; font-size: 9pt"  >
         
          <Columns>
              <asp:TemplateField HeaderText="Select">
                
                  <ItemTemplate>
                      <asp:CheckBox ID="cbRows" runat="server"  Checked="true"/>
                  </ItemTemplate>
                 
              </asp:TemplateField>
             
              <asp:BoundField DataField="EnrollNumber" HeaderText="EnrollNumber" SortExpression="Address">
               
            </asp:BoundField>
            <asp:BoundField DataField="FingerNumber" HeaderText="FingerNumber" SortExpression="PhoneNo">
                
            </asp:BoundField>
             <asp:BoundField DataField="Privilige" HeaderText="Privilige" SortExpression="EmailId">
                
            </asp:BoundField>

             <asp:BoundField DataField="pwd" HeaderText="pwd" SortExpression="EmailId">
                
            </asp:BoundField>

             <asp:BoundField DataField="FPData" HeaderText="Enroll Data" SortExpression="EmailId">
                
            </asp:BoundField>
          </Columns>
         
      </asp:GridView>
            </div>  
                </div>

         
                <div class="row" style="margin-left:-15px; margin-right:-15px;">
                <div class="col-lg-8">
                  <div class="panel panel-primary">
                 <div class="panel-heading">
                     <asp:Label ID="Label2" runat="server" Text="Upload in Device"></asp:Label></div>
                  <div class="panel-body" style="padding-top:10px; padding-bottom:10px;">
                  <div class="row">
                  <div class="col-lg-3">
                  <b><span id="MainContent_lblDepartmentName"> 
                      <asp:Label ID="Label3" runat="server" Text="Enrollment  Id"></asp:Label></span></b>
                <asp:TextBox ID="txtcardno" runat="server" class="form-control"></asp:TextBox>
                  </div>
                  <div class="col-lg-3">
                  <b><span id="Span1">
                      <asp:Label ID="Label4" runat="server" Text="proximity card No"></asp:Label></span></b>
                <asp:TextBox ID="txtsmartcardno" runat="server" class="form-control"></asp:TextBox>
                  </div>
                  <div class="col-lg-3">
                 <b><span id="Span2">
                     <asp:Label ID="Label5" runat="server" Text="Employee Name"></asp:Label></span></b>
                 <asp:TextBox ID="TxtemployeeNAme" runat="server" class="form-control"></asp:TextBox>
                  </div>
                  <div class="col-lg-3" style="padding-top:20px;">
                 <asp:Button ID="btnsetuser" runat="server" Text="Upload in Device" 
                  type="button" class="btn btn-success " onclick="btnsetuser_Click" /> 
                  </div>
                  </div>
                  </div>
                 </div>
                </div>
                <div class="col-lg-4">
                  <div class="panel panel-primary">
                  <div class="panel-heading" >
                      <asp:Label ID="Label6" runat="server" Text="Set Time"></asp:Label></div>
                  <div class="panel-body" style="padding-top:30px; padding-bottom:10px;">
                  <div class="row">
                  <div class="col-lg-3" style="padding-top:8px;"> <span id="Span3" >
                      <asp:Label ID="Label7" runat="server" Text="Time"></asp:Label></span> </div>
                  <div class="col-lg-5">
                  <asp:TextBox ID="TextBox3" runat="server" class="form-control" 
                        Font-Bold="True">00:00:00</asp:TextBox> 
                  </div>
                  <div class="col-lg-2">
                     <asp:Button ID="btnsettime" runat="server" Text="Set Time" 
        type="button" class="btn btn-success " onclick="btnsettime_Click" />
                   <asp:TextBox ID="TextBox1" runat="server" class="form-control" 
                        Visible="False"></asp:TextBox>
                  </div>
                  </div>
                  </div>
                  </div>
                
                </div>
          
        
                
                </div>
                    <asp:Panel ID="Panel1" runat="server" Enabled="False">
                  
                <div class="row" style="margin-left:20px; margin-right:0px; position:relative; top:-20px;">
                <ul class="list-inline" style="display:inline-flex">

                                     <li><asp:Button ID="Button3" runat="server" Text="Clear Log" 
        type="button" class="btn btn-success " onclick="Button3_Click" /> </li>&nbsp;&nbsp;
        <li><asp:Button ID="btnsetusername" runat="server" Text="Set User Name" 
        type="button" class="btn btn-success " onclick="btnsetusername_Click"  /></li>&nbsp;&nbsp;
            
       <li> <asp:Button ID="Button6" runat="server" Text="Delete All User" 
        type="button" class="btn btn-success " onclick="Button6_Click"  /></li>&nbsp;&nbsp;

        <li><asp:Button ID="Button4" runat="server" Text="Remove Admin" 
        type="button" class="btn btn-success " onclick="Button4_Click" /> </li>&nbsp;&nbsp;
          
        <li><asp:Button ID="BtnDeleteUser" runat="server" Text="Delete User" 
        type="button" class="btn btn-success " onclick="BtnDeleteUser_Click" /> </li>&nbsp;&nbsp;
        			
        <li><asp:Button ID="Btnadd" runat="server" Text="Download Finger" onclick="Btnadd_Click" 
        type="button" class="btn btn-success " />  </li> &nbsp;&nbsp;    
              
                                		<li><asp:Button ID="Button5" runat="server" Text="Upload  Finger" 
        type="button" class="btn btn-success " onclick="Button5_Click" /></li>	&nbsp;&nbsp;
       <li> <asp:Button ID="Button2" runat="server" Text="Load DB" 
        type="button" class="btn btn-success " onclick="Button2_Click" /></li>	&nbsp;&nbsp;
            <li> 
               <asp:Button ID="Button8" runat="server" Text="Load proximity CardNo" 
        type="button" class="btn btn-success " onclick="Button8_Click"   /></li>	&nbsp;&nbsp;

       <li> 
               <asp:Button ID="Button10" runat="server" Text="Upload proximity CardNo" 
        type="button" class="btn btn-success " onclick="Button10_Click"    /></li>	&nbsp;&nbsp;
            </ul>
        <ul class="list-inline" style="display:inline-flex">
         

        <li><asp:Button ID="Button7" runat="server" Text="Delete From DB" 
        type="button" class="btn btn-success " onclick="Button7_Click" /><i class="fa fa-plus;"></i>
        <i  class="fa fa-trash-o;"></i></li>&nbsp;&nbsp;
       <li> <asp:Button ID="Button1" runat="server" 
            Text="Back" class=" btn btn-danger"
            onclick="Button1_Click"  /><i></i></li>
        
        </ul>
                
                </div>
              </asp:Panel>       
                </div>
              </div>
					
      
                    
				</div>
            



                           
</div>

     

<!---<div class="row">	
					<div class="col-lg-12">
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title"></h3>
                            </div>
                            <div class="panel-body grid_height" style=" height:350px; overflow:scroll;">    
                        <div class="table-responsive">
                    
             

     
     
                        </div>
                                               
                            </div>
                        </div>
                    </div>
				</div>
                 <div class="row">

				

				</div>

               <br />


               <div class="row">
             
               
               </div> 


  </center>
    <br />
    <center >

    
                <div class="panel-heading">
                <%--<asp:Button ID="btnsettime" runat="server" Text="Set Time" 
        type="button" class="btn btn-success " onclick="btnsettime_Click" />--%>
     

            </div>--->
<script src="js/jquery-1.8.3.min.js"
       type="text/javascript"></script>
</asp:Content>

